package com.zzr.zzrbackend.controller;

import com.zzr.zzrbackend.pojo.dto.CommonResult;
import com.zzr.zzrbackend.pojo.dto.param.SeedCodeParam;
import com.zzr.zzrbackend.pojo.dto.result.NoData;
import com.zzr.zzrbackend.service.AuthenticationService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class AuthenticationController {
    @Resource
    private AuthenticationService authenticationService;

    @RequestMapping(path = "/api/seed-code", method = RequestMethod.POST)
    public CommonResult<NoData> seedCode(@RequestBody SeedCodeParam seedCodeParam) throws Exception {
        return authenticationService.seedCode(seedCodeParam);
    }
}
